import { defineStore } from 'pinia';

const useGlobalStore = defineStore('store', {
  state: () => {
    return {
      name: 'Jav',
    };
  },
  getters: {
    lowercasedName(): string {
      return this.name.toLowerCase();
    },
    uppercasedName: state => state.name.toUpperCase(),
  },
  persist: {
    key: 'pinia',
  },
});

export { useGlobalStore };
